Skip to content

Fix memsize function for embedded types#992

Merged
byroot merged 1 commit into
ruby:masterfrom
byroot:fix-memsize-embedded
Jun 5, 2026
Merged

Fix memsize function for embedded types#992
byroot merged 1 commit into
ruby:masterfrom
byroot:fix-memsize-embedded

Conversation

@byroot
Copy link
Copy Markdown
Member

@byroot byroot commented Jun 5, 2026

We shouldn't report the size of the embedded struct.

We shouldn't report the size of the embedded struct.
@byroot byroot force-pushed the fix-memsize-embedded branch from b21f3c5 to f4d20e9 Compare June 5, 2026 07:44
@byroot byroot merged commit b1a0891 into ruby:master Jun 5, 2026
42 checks passed
@nobu
Copy link
Copy Markdown
Member

nobu commented Jun 5, 2026

"Embeddable" doesn't mean "embedded" always, I guess.

@byroot byroot deleted the fix-memsize-embedded branch June 5, 2026 09:06
@byroot
Copy link
Copy Markdown
Member Author

byroot commented Jun 5, 2026

@nobu this is handled by the TypedDate API: https://github.com/ruby/ruby/blob/2dd77a0dcd1f634d7787e62d1d735147fd73d99a/gc.c#L1224-L1226

@nobu
Copy link
Copy Markdown
Member

nobu commented Jun 5, 2026

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants